

package jetbrains.buildServer.server.rest.data.util;

import java.util.function.Supplier;
import jetbrains.buildServer.util.impl.Lazy;
import org.jetbrains.annotations.NotNull;

public class LazyUtil {
  @NotNull
  public static <T> Lazy<T> lazy(@NotNull Supplier<T> value){
    return  new Lazy<T>() {
      @Override
      protected T createValue() {
        return value.get();
      }
    };
  }
}